<template>
  <el-container class="app-container">
    <el-header><Header /></el-header>
    <el-main><NuxtPage /></el-main>
    <el-footer height="auto" class="app-footer"><Footer /></el-footer>
  </el-container>
</template>

<script setup>
import Header from '@/components/Header.vue'
import Footer from '@/components/Footer.vue'
</script>

<style scoped lang="scss">
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden;
}

.el-main {
  flex: 1;
  max-width: 1200px;
  margin: 1rem auto;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  @media screen and (max-width: 1260px) {
    padding: 0 1rem;
  }
}

.app-footer {
  padding: 0;
  height: auto;
  width: 100%;
}

:deep(.el-footer) {
  --el-footer-padding: 0;
  width: 100%;
  box-sizing: border-box;
}

:deep(.el-header) {
  width: 100%;
  box-sizing: border-box;
}
</style>
